<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		{% load static %}
		{% load news_filter%}
		<link rel="stylesheet" type="text/css" href="{% static 'news/css/article_mores.css' %}"/>
	</head>
	<body>
<section>
		<div id="head">
			{% if users %}
			<a href="{% url 'news:publish_content' %}" id="head_1"><span>发布内容</span></a><a href="{% url 'news:user_index' %}" id="a2"><img src="{% static user.portrait_url %}"></a>
			{% else %}
			<a href="{% url 'news:user_index' %}" id="a1">登录 |</a>
			<a href="{% url 'news:user_register' %}" id="a3">注册</a>
			{% endif %}
		</div>

		<div id="body_1">
			<ul>
				<li><strong>快讯-快讯列表</strong></li>
			</ul>
		</div>

		<div id="body_2">
			<img src="{% static 'news/images/xcx.png' %}" alt="" id="xcx">
			<span id="xcx_1"><strong>扫码小程序</strong></span>
			<span id="hand">掌上轻松阅读>></span>
		</div>
		{% block body_4 %}
		<div id="body_4">
			{% for news in news_flash %}
				<a href="{% url 'news:article_details' news.id %}">
					<div class="flash">
						<h4>{{news.title}}</h4>
						<p class="enter">{{news.abstract}}</p>
						<p class="tim">{{news.ago_time}}<span class="im1"><img src="{% static 'img/yan.png' %}">{{news.view_number}}</span><span class="im2"><img src="{% static 'news/images/k_03.png' %}"><a href="">分享</a></span></p>
					</div>
				</a>
			{% endfor %}
		</div>
		{% endblock %}


</section>
		<div id="body_3">
			<strong id="remen">热门新闻</strong>
			<img src="{% static news.portrait.url %}" alt="" id="img3">
			<div id="titles">{{news.title|slices_1}}</div>
			{% for i in l_news%}
			<a class="news_2" href="{% url 'news:article_details' i.id %}">
				<img src="{% static i.portrait.url %}" class="img3">
				<span class="titles">{{i.title|slices_1}}</span>
				<span class="times">{{i.pub_date|date:'Y-m-d'}}</span>
			</a>
			{% endfor %}
		</div>
	</body>
	<script type="text/javascript" src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){



		})
	</script>

</html>